import { createApp } from 'vue'
import App from './App.vue'
import { setupRouter } from '@/router'
import { setupStore } from '@/store'
import { setupPlugins } from '@/plugins'
import { setupGlobalComponents } from '@/components'
import '@/assets/css/index.less'

async function bootstrap() {
  const app = createApp(App)
  await setupStore(app)
  setupGlobalComponents(app)
  setupPlugins(app)
  setupRouter(app)

  app.mount('#app')
}

bootstrap().catch()
